Skip to main content

All Questions

1vote
0answers
327views

Bash terminal lagging one input behind

After a recent update, I've noticed that working on any terminal for more than a few minutes causes a delay between inputting a keypress and seeing it reflected on the screen. Specifically, if I were ...
Nick Reed's user avatar
0votes
1answer
298views

Permission denied error when starting terminal

I'm getting this error when I start my terminal: /home/USERNAME/.config/envman/PATH.env:2: permission denied: /home/USERNAME/.local/bin this is my .zshrc file: # Enable Powerlevel10k instant prompt. ...
Ilgar's user avatar
0votes
1answer
310views

Auto-translation of newline characters in the terminal

I'm following along here. I notice (this is not complete, just for demonstration) that at this point: #include <termios.h> raw.c_iflag &= ~(ICRNL | IXON); raw.c_oflag &= ~(OPOST); ...
user129393192's user avatar
-1votes
1answer
88views

`IFS="value" command` is a popular feature of many shells, but official documentation is hard to find. Where is it documented officially? [duplicate]

I constantly see IFS="value" command being referred to as a means of changing the IFS (Internal Field Separator) temporarily, only for the duration of the command provided, yet there are ...
Befitting Display Name's user avatar
-1votes
1answer
3kviews

Why use "tail -n 1" for finding the nth line of a file in Unix?

I've noticed that people typically use head -n | tail -n 1 to find the nth line of a file in Shell. For example, if I was asked to find the 7th line of a file, why not just use head -7 instead of ...
user avatar
0votes
2answers
44views

How to add the strings in a particular line without hardcoding

I have 2 files, 1st file it has the output and another one template. I want to add ID's in the template from output without hardcode the value. Output.txt, abc 8392382222 def 9283923829 ...
Beginner's user avatar
3votes
2answers
1kviews

Is there a character in Linux that can be used at start of a filename to bump it to the top in regular sort order but doesn't require escaping etc?

There are lots of questions/answers explaining what characters one shouldn't use in Linux filenames etc. I am looking for a non-alpha/numeric character that I can put at the front of a filename to ...
Ashley Aitken's user avatar
1vote
0answers
108views

How to find how many words with 10 or more letters are in a file

I want to know how many words with 10 or more letters are in a document without using regex. (this is for a school work and it is one of the contraints) I have been trying multiple thing but really ...
MRS's user avatar
  • 11
1vote
2answers
6kviews

How can I create a hash or sha256sum in Bash using multiple sources or inputs? What is the recommended method?

I want to create a hash of more than one source in Bash. I am aware that I can: echo -n "STRING" | sha256sum or sha256sum [FILE] What I need is: STRING + FILE FILE + FILE STRING + STRING ...
ReflectYourCharacter's user avatar
-1votes
2answers
475views

umask value not working

If I want a directory and file to have the permissions: -rw-r---w- -file drwxr-x-w- - directory why doesn't my umask value of 024 work?
deus_170's user avatar
0votes
2answers
313views

How do I sort multiple columns and then cut out two columns

I have the file 6 0 stephen 5 1 john 4 2 margaret 2 3 jack I've been using cat age_names | sort -n -r age_names.txt I want it to display the peoples names in descending order of age, whilst only ...
deus_170's user avatar
3votes
2answers
454views

Every row of a file is converted to a new file

I have a file that contains four columns and 5000 rows. I want to make 5000 new files from this file so that each file has one row from the original file. Also, I want to name the new files according ...
Muhammad Sajid Tahir's user avatar
7votes
2answers
4kviews

What exactly handles the Ctrl+X shortcut family (e.g. Ctrl+X Ctrl+E) in Linux terminals?

I've seen a lot of online resources mention several compound shortcuts beginning with Ctrl+X : Ctrlx Ctrle : Edits the current line in the $EDITOR program, or vi if undefined. Ctrlx Ctrlr : Read in ...
Alexander Gonchiy's user avatar
0votes
0answers
177views

How to get Gentoo Package Count with C Code?

I have a terminal fetching program on my GitHub that is similar to Neofetch but it is written in C instead of bash called Cfetch I know how to get the package count for Arch with C: static char *...
Amarakon's user avatar
1vote
1answer
5kviews

Chrome OS on Linux through QEMU

Is it possible to install full Chrome OS through KVM on Linux and where can I get the full .iso file or the img of Chrome OS?
Holloway's user avatar

153050per page
close